<?php


namespace App\Http\Controllers;


use App\Models\Category;
use App\Models\Filter;
use Illuminate\Http\Request;

class SolutionController extends Controller
{
    public function index(Request $request)
    {
        /*Filter::cutStr(
            'https://www.szweb.cn/solution/',
            '<div class="weblg project-cover">',
            '<div class="full-related-news">',
            'solution/index'
        );*/
        $cate = Category::getCateByTargetName("solution");
        return view("solution/index",compact("cate"));
    }

    public function jiaoyu()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/jiaoyu/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/jiaoyu'
        );
        $cate = Category::getCateByTargetName("jiaoyu");
        return view("solution.jiaoyu",compact("cate", "catelist"));
    }


    public function shangcheng()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/shangcheng/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/shangcheng'
        );
        $cate = Category::getCateByTargetName("shangcheng");
        return view("solution.shangcheng",compact("cate", "catelist"));
    }


    public function meirong()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/meirong/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/meirong'
        );
        $cate = Category::getCateByTargetName("meirong");
        return view("solution.meirong",compact("cate", "catelist"));
    }


    public function led()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/led/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/led'
        );
        $cate = Category::getCateByTargetName("led");
        return view("solution.led",compact("cate", "catelist"));
    }


    public function it()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/it/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/it'
        );
        $cate = Category::getCateByTargetName("it");
        return view("solution.it",compact("cate", "catelist"));
    }


    public function fangdichan()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/fangdichan/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/fangdichan'
        );
        $cate = Category::getCateByTargetName("fangdichan");
        return view("solution.fangdichan",compact("cate", "catelist"));
    }


    public function zhuangshi()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/zhuangshi/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/zhuangshi'
        );
        $cate = Category::getCateByTargetName("zhuangshi");
        return view("solution.zhuangshi",compact("cate", "catelist"));
    }


    public function jieneng()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/jieneng/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/jieneng'
        );
        $cate = Category::getCateByTargetName("jieneng");
        return view("solution.jieneng",compact("cate", "catelist"));
    }


    public function shouji()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/shouji/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/shouji'
        );
        $cate = Category::getCateByTargetName("shouji");
        return view("solution.shouji",compact("cate", "catelist"));
    }


    public function jituan()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/jituan/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/jituan'
        );
        $cate = Category::getCateByTargetName("jituan");
        return view("solution.jituan",compact("cate", "catelist"));
    }


    public function jinrong()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/jinrong/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/jinrong'
        );
        $cate = Category::getCateByTargetName("jinrong");
        return view("solution.jinrong",compact("cate", "catelist"));
    }


    public function wuliu()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/wuliu/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/wuliu'
        );
        $cate = Category::getCateByTargetName("wuliu");
        return view("solution.wuliu",compact("cate", "catelist"));
    }


    public function zhongbiao()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/zhongbiao/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/zhongbiao'
        );
        $cate = Category::getCateByTargetName("zhongbiao");
        return view("solution.zhongbiao",compact("cate", "catelist"));
    }


    public function shuma()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/shuma/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/shuma'
        );
        $cate = Category::getCateByTargetName("shuma");
        return view("solution.shuma",compact("cate", "catelist"));
    }


    public function lvyou()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/lvyou/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/lvyou'
        );
        $cate = Category::getCateByTargetName("lvyou");
        return view("solution.lvyou",compact("cate", "catelist"));
    }

    public function responsive()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/responsive/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/responsive'
        );
        $cate = Category::getCateByTargetName("lvyou"); //数据库不存在此分类
        return view("solution.responsive",compact("cate", "catelist"));
    }

    public function jianshe()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/jianshe/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/jianshe'
        );
        $cate = Category::getCateByTargetName("lvyou");//数据库不存在此分类
        return view("solution.jianshe",compact("cate", "catelist"));
    }

    public function menhu()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/menhu/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/menhu'
        );
        $cate = Category::getCateByTargetName("lvyou");//数据库不存在此分类
        return view("solution.menhu",compact("cate", "catelist"));
    }

    public function anfang()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/anfang/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/anfang'
        );
        $cate = Category::getCateByTargetName("lvyou");//数据库不存在此分类
        return view("solution.anfang",compact("cate", "catelist"));
    }

    public function xuexiao()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/xuexiao/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/xuexiao'
        );
        $cate = Category::getCateByTargetName("lvyou");//数据库不存在此分类
        return view("solution.xuexiao",compact("cate", "catelist"));
    }

    public function fuzhuang()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/fuzhuang/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/fuzhuang'
        );
        $cate = Category::getCateByTargetName("lvyou");//数据库不存在此分类
        return view("solution.fuzhuang",compact("cate", "catelist"));
    }

    public function yingxiao()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/yingxiao/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/yingxiao'
        );
        $cate = Category::getCateByTargetName("lvyou");//数据库不存在此分类
        return view("solution.yingxiao",compact("cate", "catelist"));
    }

    public function tuiguang()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/tuiguang/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/tuiguang'
        );
        $cate = Category::getCateByTargetName("lvyou");//数据库不存在此分类
        return view("solution.tuiguang",compact("cate", "catelist"));
    }

    public function app()
    {
        $catelist = Category::getCateListBy('solution');
        Filter::cutStr(
            'https://www.szweb.cn/solution/app/',
            '<div class="full-case-container">',
            '<div class="full-related-news">',
            'solution/app'
        );
        $cate = Category::getCateByTargetName("lvyou");//数据库不存在此分类
        return view("solution.app",compact("cate", "catelist"));
    }
}